import { _decorator, Component, Node } from 'cc';
import { ResourceManager } from './managers/ResourceManager';
import { GameManager } from './managers/GameManager';
import { WheelManager } from './managers/WheelManager';
import { PlatformManager } from './managers/PlatformManager';
import { TipManager } from './managers/TipManager';
import { StorageManager } from './managers/StorageManager';
import { PlayerManager } from './managers/PlayerManager';
import { ItemManager } from './managers/ItemManager';
const { ccclass, property } = _decorator;

export let _resource: ResourceManager = null!

export let _game: GameManager = null!

export let _platform: PlatformManager = null!

export let _wheel: WheelManager = null!

export let _tip: TipManager = null!

export let _storage: StorageManager = null!

export let _player: PlayerManager = null!

export let _item: ItemManager = null!

@ccclass('Main')
export class Main {
    
    /** 主类加载 */
    static construct() {
        _resource = new ResourceManager()
        _resource.construct()
        _game = new GameManager()
        _game.construct()
        _platform = new PlatformManager()
        _platform.construct()
        _wheel = new WheelManager()
        _wheel.construct()
        _tip = new TipManager()
        _tip.construct()
        _storage = new StorageManager()
        _storage.construct()
        _player = new PlayerManager()
        _player.construct()
        _item = new ItemManager()
        _item.construct()
    }
}